class AddGridNetBean {
  int? id;
  int? customerInfoId;
  String? capacity;
  String? gridConnectedAddress;
  String? electricNumber;
  String? correlationNumber;
  String? gridConnectedAddressTwo;
  String? electricNumberTwo;
  String? correlationNumberTwo;
  String? gridConnectedAddressThree;
  String? electricNumberThree;
  String? correlationNumberThree;
  String? contractSignDate;
  String? remarks;
  List<int>? recordForm;
  List<int>? applicationProcess;
  List<int>? other;
  List<GridConnectedPointDTOS>? gridConnectedPointDTOS;
  int? saveOrSubmit;

  AddGridNetBean({
    this.id,
    this.customerInfoId,
    this.capacity,
    this.gridConnectedAddress,
    this.electricNumber,
    this.correlationNumber,
    this.gridConnectedAddressTwo,
    this.electricNumberTwo,
    this.correlationNumberTwo,
    this.gridConnectedAddressThree,
    this.electricNumberThree,
    this.correlationNumberThree,
    this.applicationProcess,
    this.contractSignDate,
    this.remarks,
    this.recordForm,
    this.other,
    this.gridConnectedPointDTOS,
    this.saveOrSubmit,
  });

  AddGridNetBean.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    customerInfoId = json['customerInfoId'];
    capacity = json['capacity'];
    gridConnectedAddress = json['gridConnectedAddress'];
    electricNumber = json['electricNumber'];
    gridConnectedAddressTwo = json['gridConnectedAddressTwo'];
    electricNumberTwo = json['electricNumberTwo'];
    correlationNumberTwo = json['correlationNumberTwo'];
    gridConnectedAddressThree = json['gridConnectedAddressThree'];
    electricNumberThree = json['electricNumberThree'];
    correlationNumberThree = json['correlationNumberThree'];
    other = json['other'];
    correlationNumber = json['correlationNumber'];
    contractSignDate = json['contractSignDate'];
    remarks = json['remarks'];
    if (json['other'] != null) {
      other = json['other'].cast<int>();
    }
    if (json['recordForm'] != null) {
      other = json['recordForm'].cast<int>();
    }
    if (json['applicationProcess'] != null) {
      other = json['applicationProcess'].cast<int>();
    }
    if (json['gridConnectedPointDTOS'] != null) {
      gridConnectedPointDTOS = <GridConnectedPointDTOS>[];
      json['gridConnectedPointDTOS'].forEach((v) {
        gridConnectedPointDTOS!.add(GridConnectedPointDTOS.fromJson(v));
      });
    }
    saveOrSubmit = json['saveOrSubmit'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['customerInfoId'] = this.customerInfoId;
    data['capacity'] = this.capacity;
    data['gridConnectedAddress'] = this.gridConnectedAddress;
    data['remarks'] = this.remarks;
    data['other'] = this.other;
    data['electricNumber'] = this.electricNumber;
    data['correlationNumber'] = this.correlationNumber;
    data['contractSignDate'] = this.contractSignDate;
    data['recordForm'] = this.recordForm;
    data['applicationProcess'] = this.applicationProcess;
    data['gridConnectedAddressTwo'] = this.gridConnectedAddressTwo;
    data['electricNumberTwo'] = this.electricNumberTwo;
    data['correlationNumberTwo'] = this.correlationNumberTwo;
    data['gridConnectedAddressThree'] = this.gridConnectedAddressThree;
    data['electricNumberThree'] = this.electricNumberThree;
    data['correlationNumberThree'] = this.correlationNumberThree;
    if (this.gridConnectedPointDTOS != null) {
      data['gridConnectedPointDTOS'] =
          this.gridConnectedPointDTOS!.map((v) => v.toJson()).toList();
    }
    data['saveOrSubmit'] = this.saveOrSubmit;
    return data;
  }
}

class GridConnectedPointDTOS {
  int? id;
  String? gridConnectedAddress;
  String? capacity;
  String? electricNumber;
  String? correlationNumber;
  String? contractSignDate;
  List<int>? other;
  String? remarks;

  GridConnectedPointDTOS(
      {this.id,
        this.gridConnectedAddress,
        this.capacity,
        this.electricNumber,
        this.correlationNumber,
        this.contractSignDate,
        this.other,
        this.remarks});

  GridConnectedPointDTOS.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    gridConnectedAddress = json['gridConnectedAddress'];
    capacity = json['capacity'];
    electricNumber = json['electricNumber'];
    correlationNumber = json['correlationNumber'];
    contractSignDate = json['contractSignDate'];
    if (json['other'] != null) {
      other = json['other'].cast<int>();
    }
    remarks = json['remarks'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['gridConnectedAddress'] = this.gridConnectedAddress;
    data['capacity'] = this.capacity;
    data['electricNumber'] = this.electricNumber;
    data['correlationNumber'] = this.correlationNumber;
    data['contractSignDate'] = this.contractSignDate;
    data['other'] = this.other;
    data['remarks'] = this.remarks;
    return data;
  }
}
